import { IsArray, IsUUID } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class AssignPermissionsDto {
  @ApiProperty({ 
    description: '权限ID列表', 
    type: [String],
    example: ['uuid-1', 'uuid-2']
  })
  @IsArray({ message: '权限ID必须是数组' })
  @IsUUID('4', { each: true, message: '无效的权限ID格式' })
  permissionIds: string[];
} 